package fic.storefinder.server.rpcservice;

import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import fic.storefinder.client.service.LoginService;
import fic.storefinder.shared.utils.Constants;

@SuppressWarnings("serial")
public class LoginServiceImpl extends RemoteServiceServlet implements LoginService {

	@Override
	public String LoginUser(String userName, String password) throws Exception {
		try {
			if ("fic".equals(userName) && "ficpw".equals(password)) {
				return Constants.LOGIN_OK;
			} else {
				return Constants.LOGIN_FAILED;
			}
		} catch (Exception e) {
			e.printStackTrace();
			throw e;
		}

	}

}
